package global

import "database/sql"

type GeneralSqlInput struct {
	LogSeq           int64
	RowData          string
	ColData          []map[string]string
	AlterType        string
	IndexData        map[string][]string
	InsertColumn     []string //insert插入列名
	PartitionName    string   //partition Name
	PlaceholderValue []string //用于prepare 预解析sql的占位符
	PartitionId      string
}

type ApplySqlInput struct {
	LogSeq         int64
	DB             map[string]*sql.DB
	TableType      string //普通表还是partition表，"single"为单表，"partition"为分区表
	ShardName      string
	PartitionName  string
	ApplySqlGather []*string
}
